# Contributor: Paul Bredbury <brebs@sent.com>
pkgname=atari800
pkgver=5.0.0
pkgrel=0
pkgdesc="Atari 8-bit computer emulator"
url="https://atari800.github.io/"
arch="x86_64"
license="GPL-2.0-or-later"
makedepends="autoconf automake sdl12-compat-dev mesa-dev unzip"
options="!check" # No test suite
subpackages="$pkgname-doc"
source="https://github.com/atari800/atari800/archive/ATARI800_${pkgver//./_}.tar.gz"
builddir="$srcdir/atari800-ATARI800_${pkgver//./_}"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
60ffc8a0abc06887f98af7c6447ce7d2841cb8dbceef0b8bf22e5a1448bb3553f680c7d2a26d6fdebd5ac443c7c96159f81f4bcc1586d8c3614fabdb3946a490  ATARI800_5_0_0.tar.gz
"
